package com.mall.framework.web.service;

import com.mall.system.service.SysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * RuoYi首创 html调用 thymeleaf 实现参数管理
 * Created by zhonglin on 2020/4/8.
 */
@Service("config")
public class ConfigService {

  @Autowired
  private SysConfigService configService;

  /**
   * 根据键名查询参数配置信息
   *
   * @param configKey 参数键名
   *
   * @return 参数键值
   */
  public String getKey(String configKey) {

    return configService.selectConfigByKey(configKey);
  }

}
